<template>
    <div class="downLoad">
        <div class="down-item">
            <div class="content">
                <img :src="leftCodeUrl"/>
                <div class="type-name">密签</div>
                <el-button type="primary" @click="miqian" round icon="el-icon-download">立即下载</el-button>
            </div>
        </div>
        <div class="down-item">
            <div class="content">
                <img :src="rightCodeUrl"/>
                <div class="type-name">一直扫</div>
                <el-button type="primary" @click="yizhisao" round icon="el-icon-download">立即下载</el-button>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "DownLoad",
        data(){
            return{
                leftCodeUrl: './static/images/miqian.png',
                rightCodeUrl: './static/images/yizhisao.png'
            }
        },
        methods:{
            miqian(){
                window.location.href = 'https://download.sign.cash/CryptoSigner'
            },
            yizhisao(){
                window.location.href = 'https://download.sign.cash/scanplus'
            }
        }
    }
</script>

<style scoped lang="less">
    .downLoad{
        flex: 1;
        background: url("./../../static/images/downLoad.png") no-repeat;
        background-size: 100% 100%;
        display: flex;
        flex-direction: column;
        .down-item{
            flex: 1;
            text-align: center;
            position: relative;
            .content{
                position: absolute;
                top: 50%;
                margin-top: -92px;
                left: 50%;
                margin-left: -62px;
                img{
                    width: 100px;height: 100px;
                }
                .type-name{
                    line-height: 40px;
                    color: #ffffff;
                    font-size: 16px;
                }
            }
        }
    }
</style>
